﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Visa.DB;

namespace VisaApp.Models
{
    public class HotrotructuyenModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Nick { get; set; }
        public Nullable<bool> Type { get; set; }
        public Nullable<bool> Status { get; set; }
        public Nullable<System.DateTime> DateCreate { get; set; }
        public Nullable<bool> Detele { get; set; }
        public string Dt { get; set; }
        public string Email { get; set; }
        public string NickYahoo { get; set; }

        public static void Mapfrom(HotrotructuyenModel mode, ref Hotrotructuyem entity)
        {
            entity.Id = mode.Id;
            entity.Name = mode.Name;
            entity.Nick = mode.Nick;
            entity.Type = mode.Type;
            entity.Status = mode.Status;
            entity.DateCreate = mode.DateCreate;
            entity.Detele = mode.Detele;
            entity.Dt = mode.Dt;
            entity.Email = mode.Email;
            entity.NickYahoo = mode.NickYahoo;
        }

        public static void Mapfrom(Hotrotructuyem entity, ref HotrotructuyenModel model)
        {
            model.Id = entity.Id;
            model.Name = entity.Name;
            model.Nick = entity.Nick;
            model.Type = entity.Type;
            model.Status = entity.Status;
            model.DateCreate = entity.DateCreate;
            model.Detele = entity.Detele;
            model.Dt = entity.Dt;
            model.Email = entity.Email;
            model.NickYahoo = entity.NickYahoo;
        }

    }
}